The Falcon v2 Long only strategy Using Stop loss and take profitHello,
Here is a backtest result from the beginning of the year on BTC. The white line is the Buy & Hold return.
Comission is set to 0.05% and there is no repainting : the price variable I'm using is heikenashi(tickerid).
The indicator is built upon RSI, EMAs and some other personnal tricks so predict trends.
I coded a stop loss and take profit system : the script will simply buy and sell upon conditions.
As usual I am selling access to the script, If some are interested I will publish an alert setup version. I am also open to development or reverse engineering commissions.
Search in scripts for "the script"
VJSHARMA_BB_MACD_Stoch_Short_Trade_Strategy_V2This script has the same working behind it except for some minor tweaks.
These tweaks enable the script to generate more signals than the previous version but with a loss of 4% accuracy.
SB_Volume_oscillator_Prev_high_lowThe strategy is a take on traditional volume oscillator.
In Layman terms:
The script places an order when the oscillator crosses the zero mark in the volume oscillator.
If the previous high is greater than the absolute value of previous low then a long order is placed
And if the absolute previous low is greater than the previous high then a shrt order is placed.
Last script (bandwidth focus on other monetary works. If you have any opportunities ping me)
Message if you think of any modifications/ enhancements/ any opportunities. :)
Donations/Tips... :) -
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
SB_Elder Impulse SystemThe strategy is based on LazyBear's Elder Impulse System
Strategy(in layman terms):
Long: When the green bar in the Elder Impulse System's indicator shows up
Short: When the red bar in the Elder Impulse System's indicator shows up
Close trade/Profit booking: When the blue bar in the Elder Impulse System's indicator shows up
Original Idea:
Message in the script if you think of any modifications/ enhancements.
Donations/Tips... :) -
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
SB_CM_RSI_2_Strategy_Version 2.0(New: Profit booking present which is not present in the previous indicator)
The strategy is based on the indicator posted by @ChrisMoody "CM RSI-2 Strategy Lower Indicator" which is based on "Larry Connors RSI-2 Strategy - Lower RSI"
In this strategy, the longs are placed when a green color is encountered in the rsi in the previous candle and short when the red color is encountered in the rsi.
Although the profits are booked when the rsi crossover the 10 level mark or crossunder the 90 level mark.
Just message in the script if you have any different idea regarding this indicator.
For the original indicator you can refer to :
For Tips to continue :) -
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
SB_CM_RSI_2_Strategy_Version 1.0The strategy is based on the indicator posted by @ChrisMoody "CM RSI-2 Strategy Lower Indicator" which is based on "Larry Connors RSI-2 Strategy - Lower RSI"
In this strategy the longs are placed when a green color is encountered in the rsi and short when red color is encountered in the rsi.
Although the profits can be booked at different interval.
Just message in the script if you have any different idea regarding this indicator.
For the original indicator you can refer to :
For Tips to continue :) :
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
Updated TurtlesThis script has been updated to prevent double orders (short/long) from occurring and modifying backtests results.
This is an update to the script that was written a few years ago to prevent double longs/shorts from occurring and skewin backtesting results. Check out the updated indicator here and let me know what you think.
I also added:
- date range inputs if you want to do some backtesting on a particular set of dates.
- the ability to toggle shorting
[Tutorial][RS]Working with ordersa small tutorial to explain how to work with orders, comments in the script.
Another Millionaire toolBack with another Millionaire tool script, put like a solid 12 minutes here curve fitting the moving averages. THIS WILL MAKE YOU A MILLIONAIRE. It is so easy, it makes one of the hardest industries very very easy. Works on any market. I'VE DECIDED TO SHARE THE SCRIPT AND MAKE IT PUBLIC SO WE CAN ALL BE RICH TOGETHER, MILLIONAIRES
Understanding order sizestype: properties manipulation, no programming needed
time required: 15minutes, at least
level: medium (need to know contracts, trading pairs)
A strategy can "appear" to work or be broken depending on the pile of cash that is working on. This amount is defined in the strat properties, under "order size".
For noobs (like me) this is very confusing at first :)
A strat opens/closes positions using units, a generic measure for the chart being operated on. Thes "units" can be a fixed amount of cash, a fixed amount of contracts, or a floating amount based on the last profits made. I recommend checking my previous strat to figure the case of contracts .
So, any trading price is the amount of "things" you get for some "cash". The things are the first unit, the "cash" is the second. Some examples:
XAU/USD - 1 xau oz is worth x dollars
BTC/USD - 1 bitcoin is worth x dollars
GBP/EUR - 1 pound is worth x euros
To add to confusion, a lot of markets the "unit size" is different from what the strat thinks it is. An options contract is 100 shares(the unit), 1 xau contract is 10 oz(units), 1 eur/usd contract is 100k euros and so on... so, after figuring out how the sizes work in a strat, then the sizes must be adapted for the specific market in question.
The choice os using the ETHUSD pair is because:
1 - you can buy 1eth, unlike a gold contract for example, so 1 "unit" = 1 eth, easier to get
2 - ETH is around 12 bucks, wich gives round numbers on the math, easier to wrap the brains around :)
3- is an unusual pair, so the regular contract sizes don't apply, and the brain is not conditioned to work inside the box ;)
You will have to access the script properties, to change the values. As these values are changed you will see exactly the differences in the values of the strat.
Text is too long, check the comments for all the cases
BarUpDn time limitedtrying to understand strategies, it appears that there is a lot of black magic in how a strat works behind the scenes.
anyway, it's hard to analyse what's all the data with one gazillion entries, and i wanted to know how we can manipulate/do stuff with a chart.
so, i needed to know how to "give" the script my values to work on. bundled two wants/needs into one, and created a script that only applies a strategy from the date given onwards.
how to use:
at the chart, go to the "format" little button, then the input tab, and there is all the date fields i created. fun to set it to the current date, then start going backwards and see all the little arrows filing up the chart :)
Parabolic SAR Strategy with MACD Confirmation & Trend Zone Highl📝 Description (SEO + Follower-Friendly):
🚀 Powerful Trend Strategy Using Parabolic SAR + MACD
This advanced Pine Script combines the classic Parabolic SAR trend-following system with MACD crossover confirmation, improving entry precision and filtering out false signals. The script also features:
✅ Dynamic trend zone background highlighting when SAR is below price
✅ MACD filter ensures trades align with market momentum
✅ Custom SAR logic with adaptive acceleration
✅ Clean visual SAR plots for easy trend tracking
✅ Fully backtestable with strategy.entry logic
🔎 Ideal for traders seeking early trend entries, momentum confirmation, and visual clarity.
📈 Works on all timeframes and pairs — perfect for swing traders, scalpers, and crypto enthusiasts.
💡 Use it as a base strategy or combine with your favorite indicators.
❤️ If you find this helpful, don't forget to like, comment, and follow for more premium strategies!
Backtest [OptAlgo]This backtest script is designed to convert ideas or indicators into backtest results. The script creates buy/sell signals by comparing price sources against fixed values or other imported plots using many comparison methods. It has many features including multiple exit systems: TP/SL, custom plot-based stops and more. It supports full trading automation through webhook alerts with live signal processing.
🔢 Signal Creation System
→ Values Group : Compare price sources against fixed numerical values
→ Plots Group : Compare two different price sources/indicators against each other
→ Flexible Comparisons : 15+ comparison methods (equal, crossover, rising...)
→ Signal Types : Long, Short, Close All, Block signals, and combination signals
→ Merge Rules : Minimum condition requirements for signal activation
🔀 Advanced Signal Logic
→ Counter Signals : Choose between reversing positions or closing them
→ Signal Inversion : Flip all buy/sell signals with one toggle
→ External Signal Import : Import coded signals (1=Long, -1=Short, 0=Close)
→ Day Blocker : Enable/disable trading on specific weekdays
→ Session Control : Limit trading to specific market sessions
⚙️ Strategy Settings
→ Position Sides : All Ways, Long Only, or Short Only modes
→ Signal Control : Individual enable/disable for long and short signals
→ Counter Signal Mode : Reverse Open Position vs Close Open Position
→ Signal Reversal : Global signal inversion capability
🔰 Risk Management (Limiter Settings)
→ Leverage Control : Leverage with liquidation warnings
→ Drawdown Limit : Auto-halt strategy at specified drawdown percentage
→ Tradable Ratio : Use portion of available balance (0.01-1.0)
→ Contract Limit : Cap maximum contract size regardless of balance
🎯 TP/SL System
→ Fixed TP/SL : Set percentage-based take profit and stop loss
→ Custom Plot Stops : Use any indicator/plot as dynamic stop loss
→ ATR-Based Exits : Volatility-adjusted TP/SL using Average True Range
→ Realistic Protection : Prevents unrealistic TP/SL prices in live trading
→ Stop Modes : Instant (Sudden) vs Candle Close execution
→ ATR Stop Loss : Override fixed SL with volatility-based calculations
→ ATR Take Profit : Dynamic TP based on market volatility
→ Trailing Options : Safe, Normal, or Aggressive trailing methods
→ Calculation Modes : Normal, Volume-weighted, or Limited (with max %) options
→ Volume Integration : ATR levels adjust based on volume influx
🤖 Automation & Alerts
→ Webhook Integration : Send JSON alerts for automated execution
→ Live Signals : Real-time signal processing (every tick vs bar close)
→ Strategy Key : Unique identifier for automated systems
→ Early Entry : Send alerts X seconds before candle close
→ Fast Execution : Prevent signal lag in automated trading
🐞 Development Tools
→ Alert Plotting : Visualize signals directly on chart (disable for live alerts)
→ Professional Mode : Remove UI controls for faster calculation
→ Debug : Metrics are plotted in data window.
📊 Key Advantages
→ Multi-Condition Logic : Combine multiple indicators with flexible rules
→ Risk-First Design : Built-in drawdown and leverage protection
→ Automation Ready : Full webhook and alert system integration
⚠️ Important Warnings
→ High leverage combined with high SL may adjust to liquidation price
→ Use consistent leverage across all strategies on same trading isolated margin pair
→ Live signals require "Calculate on every tick" enabled in settings
→ Disable alert plotting when creating actual alerts to prevent latency
SPXL Futures Strategy- Buy/sell signals for SPXL using futures momentum.
- For real-time signals at close, use ES1! on 2 minute chart and sign up for real-time cboe mini futures data feed in tradingview.
- All buys and sells are at near close of US RTH market at 4pm.
- Best to use the script with other breadth signals to decide on trading strategy.
- Script is compatible with SPY, SPXL, RSP, QQQ, TQQQ and many other SPX correlated tickers, however it’s primarily developed for SPX.
VGrego - Triple Regression StrategyI developed this strategy with perpetual contracts like the ones offered by Bitmex and FTX for Bitcoin.
This script uses complex regressions to analyze past, present and future to place long calls.
The script performs well on 1H charts on most perpetual contracts scenario.
MarketCipher B Backtest (FOR TESTING ONLY, NOT SAFE TO TRADE)A script to backtest the strategy outlined. This is not a final version of the script and is therefore not safe to trade. If you choose to ignore this warning, trade at your own risk.
Ema BacktesterA simple, but useful script for backtesting purposes. Find the optimal Settings for your strategy.
tips are always welcome at: 38uGQJDDZDL6wX48x4gYTccPeQ3ZHVYmY4 (btc)
I hope you enjoy the script :)
Trending CMF MultiTimeFrame - Strategythis is the strategy for the script below
Multi time frame crypto trader
Bitmex Bot 5m candlesThis script was made for our customers to test the strategies of our Bitmex Bot.
I'm not going to give you permission to use the Script, only if you become our client.
Telegram @rmgslash
BitMex Trailing Stop StrategyThis script is designed for those who want to use BitMex's trailing stop. It's not meant to be used as entry exits, but rather to get an idea of how wide the trailing stop needs to be. I suggest you backtest with different values. The script can also be integrated into an existing strategy which does give entry/exits to act as its stop loss.
LFH/ Long positions using MACD histogram, long EMA and short EMADisclaimer: I'm a noob.
Hey there!
I'm trying to implement a script which enter market long position when long EMA crossover short EMA and MACD histogram is positive and histogram at T time is lesser than histogram at T-1.
And when short EMA crossover long EMA, plus MACD histogram is negative and histogram at T is greater than histogram at T-1, I want the script to exit market long position.
Now, I have something pretty close to what I am looking for. What I am missing and can't figure out yet is:
How to moderate entries, ie. I would like it to enter positions when trends are really interesting not just every time the conditions are fulfilled (same for exits) as there is way too much positions
I need to find a way to exit appropriated positions.
New Rate - PREMIUM v2New Rate – Premium
Overview
New Rate – Premium is a breakout strategy built around a strict “one trade per day” rule. It forms an intraday range from the first N candles, freezes High/Low at the close of candle N, and places OCO stop orders exactly on those levels. The first breakout fills and the opposite order is canceled. Exits can be managed by fixed ticks or by risk/reward (RR). The script draws SL/TP boxes, keeps entry labels at a fixed distance from price, and lets you restrict trading to selected weekdays.
How it works
Window & count: set timeframe, session start, and N candles. Those candles are highlighted and used to compute the range High/Low.
Freeze: when candle N closes, the strategy locks High/Low and draws the lines; a 50% midline is optional.
OCO placement: buy-stop on High and sell-stop on Low (one-cancels-other). The first fill cancels the other side.
Exits:
– Ticks mode: SL/TP are fixed distances in ticks from entry.
– RR mode: SL at the opposite side of the range; TP = RR × risk.
Visual SL/TP boxes are drawn in both modes.
Daily lock: after the first fill, no more entries for that day.
Key features
First break only, one trade per day: hard discipline that avoids over-trading.
Automatic range end: timeframe × N candles (or manual end time).
Exact “at-the-break” entries: stop orders placed at frozen High/Low.
Flexible exits: fixed ticks or RR with opposite-side stop.
Clean visuals: High/Low and midline with configurable color/style/width; text alignment (left/center/right); session background with opacity.
SL/TP boxes: configurable colors, borders, width, and forward projection.
Entry labels with constant offset: “BUY” below bar, “SELL” above bar; distance in ticks so labels never sit on price.
Weekday filter: trade only the days you select (Mon–Fri).
Inputs (summary)
• Session & range: timeframe (minutes), start time, N candles, auto end (TF × N) or manual, line extension.
• Style: High/Low colors, styles, widths; midline on/off; label position; session background color and opacity.
• Exits: RR using the opposite extreme as SL, or “Use SL/TP by ticks”.
• SL/TP boxes: projection bars, SL color, TP color, border color and width, box limit.
• Weekdays: Monday–Friday selectors.
• Entry labels: show/hide, colors, size, vertical offset in ticks, optional X shift in bars.
Backtest snapshot — FX:XAUUSD 30m
Range: 02 Jan 2024 00:00 → 12 Sep 2025 12:00 • Symbol/TF: FX:XAUUSD / 30m
• Net Profit: $1,599.77
• Gross Profit / Gross Loss: $3,929.47 / $2,329.70
• Max Drawdown: $112.73 (4.93%)
• Total Trades / Win rate: 440 / 48.41%
• Avg Trade: $3.64 (0.04%); Avg Winner / Avg Loser: $18.45 / $10.26
• Profit Factor / Sharpe / Sortino: 1.687 / 1.163 / 6.876
• Largest Win / Loss: $91.94 / $10.26
• Avg Bars in Trade: 1 (long), 2 (short)
Why this strategy is original
First-bar breakout accuracy: orders arm exactly when the N-th candle closes, so the very next bar can fill at the true break. This avoids the common ORB miss where the first post-range bar is skipped by delayed checks or market orders.
OCO + daily lock as a core mechanic: the engine enforces one-and-done behavior—no soft rules, no hidden retries—so test results match live logic.
Two exit frameworks, one visual language: switch seamlessly between fixed-tick and structural RR exits while managing both with the same SL/TP boxes for consistent analysis and education.
Readability by design: label offset, aligned High/Low text, and tunable session background keep charts uncluttered during long optimizations or multi-asset reviews.
Operational guardrails: drawing budgets, box limits, and weekday filters are integrated so backtests remain stable and realistic with trading hours.
Focused ORB specialization: no oscillators, no hidden bias—transparent, testable, and purpose-built for the opening-range dynamic you configure.
Recommended use
• Session openings or early windows with a single, clean decision per day.
• Strict rules with exact entry levels and auditable exits.
• Benchmarking exits in both ticks and RR with apples-to-apples visuals.
Default strategy properties
• Initial capital: 10,000 USD; position sizing by % of equity (editable).
• Commissions default to 0% and slippage to 0; edit to match your broker/market.
• Drawing limits tuned to respect TradingView resource caps.
Best practices & compliance
• Educational use. Not financial advice.
• Past performance does not guarantee future results.
• Adjust slippage, commissions, and position sizing to your live context.
• Original implementation with documented mechanics; compliant with TradingView House Rules.
Example setup
TF 5m, start 08:00, N = 6 → auto end at 08:30
RR = 2 with SL at the opposite side of the range
Boxes: projection 10 bars; SL #9598a1; TP #ffbe1a; border #787B86; opacity 70
Days: Tuesday and Wednesday only
Labels: “BUY” below and “SELL” above, 10-tick offset
Glossary
• Opening range breakout (ORB): breakout of the configured initial range.
• One-cancels-other (OCO): filling one order cancels the other.
• Risk/reward (RR): target equals RR × risk distance.
• Tick: minimum price increment.
• Offset: fixed label separation from the bar extremum.
Hilly's Reversal Scalping Strategy - 5 Min CandlesHow to Use
Copy the Code: Copy the script above.
Paste in TradingView: Open TradingView, go to the Pine Editor (bottom of the chart), paste the code, and click “Add to Chart.”
Set Timeframe: Ensure the chart is set to 5-minute candles (TradingView: right-click chart > Timeframe > 5 Minutes).
Check for Errors: Verify no errors appear in the Pine Editor console.
Apply to Chart: Use a liquid crypto pair (e.g., BTC/USDT, ETH/USDT on Binance or Coinbase).
Verify Signals:
Green “BUY” labels and triangle-up arrows for bullish reversals (e.g., bullish engulfing, hammer, doji, morning star, three white soldiers, double bottom in a downtrend).
Red “SELL” labels and triangle-down arrows for bearish reversals (e.g., bearish engulfing, shooting star, doji, evening star, three black crows, double top in an uptrend).
Green/red background highlights for signal candles.
Backtest: Use TradingView’s Strategy Tester to evaluate performance over 1–3 months, checking Net Profit, Win Rate, and Drawdown.
Demo Test: Run on a demo account to confirm signal visibility and performance before trading with real funds.
Troubleshooting
If Errors Occur: If any errors appear in TradingView’s Pine Editor console (e.g., “Syntax error” or “Invalid argument”), please share the exact error messages to diagnose environment-specific issues.
Signal Overload: If too many signals appear, increase patternLookback to 15 or set volFilter = volume > volMa * 2.0.
Missed Signals: If signals are too rare, set useVolumeFilter=false or reduce patternLookback to 5.
Additional Features: If you need alerts, other indicators (e.g., EMA, RSI), or dynamic arrow sizing, please specify. Note that dynamic sizing caused errors previously, so I’ve kept size=size.normal.